let myArray = [65,66,67,68]
for (let index = 0; index < myArray.length; index++) {
    const el = myArray[index];
    //console.log(String.fromCharCode(el))
}

//a 97
//A 65
console.log(String.fromCharCode(65))
console.log("A".charCodeAt(0))

//-----------------------------------------
const content = "Abc*HJK"
const upperArr = []
const lowerArr = []
const otherArr = []

for (let index = 0; index < content.length; index++) {
    const ele = content[index];
    const loc = ele.charCodeAt(0)
    if(loc >= 65 && loc <= 96){
        console.log("字母大写")
        upperArr.push(ele)
    }
    else if(loc >= 97 && loc <= 122){
        console.log("字母小写")
        lowerArr.push(ele)
    }
    else{
        console.log("其他字符")
        otherArr.push(ele)
    }
} 


//关键字 保留字 class void 普通函数
//function myPrint(){
//    console.log("printing is going")
//}
//myPrint()

//匿名函数
test = function(){
    const content = "Abc*HJK"
const upperArr = []
const lowerArr = []
const otherArr = []

for (let index = 0; index < content.length; index++) {
    const ele = content[index];
    const loc = ele.charCodeAt(0)
    if(loc >= 65 && loc <= 96){
        console.log("字母大写")
        upperArr.push(ele)
    }
    else if(loc >= 97 && loc <= 122){
        console.log("字母小写")
        lowerArr.push(ele)
    }
    else{
        console.log("其他字符")
        otherArr.push(ele)
    }
} 
}
test()